package com.allqj.sfx.ddd.member.interfaces.restful.admin;

import com.allqj.sfx.application.dto.TableColumnDTO;
import com.allqj.sfx.ddd.member.application.service.AdminDeptApplicationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author sjw
 * @className DepartmentController
 * @date 2022/7/20 18:49
 * @description: 部门
 */

@Api(tags = "会员管理-管理端-部门管理")
@RestController
@RequestMapping("/v1/member/admin/dept")
public class AdminDeptController {
    private final AdminDeptApplicationService adminDeptApplicationService;

    public AdminDeptController(AdminDeptApplicationService adminDeptApplicationService) {
        this.adminDeptApplicationService = adminDeptApplicationService;
    }

    @ApiOperation(value = "管理端-用户管理-列表表头")
    @GetMapping("/pageHeader")
    public List<TableColumnDTO> pageHeader() {
        return adminDeptApplicationService.pageHeader();
    }
}
